import { createSlice } from "@reduxjs/toolkit";
import { updateState } from "../_utils";
import { storage } from "../../utils";

const { list = [] } = storage.getItem("base") ?? {};
export default createSlice({
  name: "base",
  initialState: {
    list,
  },
  reducers: {
    updateBaseState: updateState,
  },
});
